import { createRouter, createWebHistory } from 'vue-router';
import Home from '../pages/Home.vue';
import RestaurantDetail from '../pages/RestaurantDetail.vue';
import UserInfo from '../pages/UserInfo.vue';

const routes = [
    { path: '/', name: 'Home', component: Home },
    { path: '/restaurant/:id', name: 'RestaurantDetail', component: RestaurantDetail },
    { path: '/user', name: 'UserInfo', component: UserInfo },
];

const router = createRouter({
    history: createWebHistory(),
    routes,
});

export default router;